home *** CD-ROM | disk | FTP | other *** search
- #include <stdlib.h>
- #include <conio.h>
- #include "xlib.h"
- #include "xtext.h"
- #include "xrect.h"
- #include "icon.h"
- #include "animicon.h"
- #include "yakpal.h"
- #include <alloc.h>
-
- void main(int argCount, char **argVector)
- {
- icon myicon;
- unsigned int backpage_offs;
- x_set_mode(2,360);
- x_set_doublebuffer(200);
- x_text_init();
- yakPalette myYakPalette("standard.ypl");
- myYakPalette.put();
- int counter = 1;
- yakLib *myYakLibPtr = NULL;
- if ((argCount > 2) && (argVector[1][0] == '-'))
- {
- myYakLibPtr = new yakLib(&argVector[1][1]);
- counter = 2;
- }
- for (; counter < argCount; ++counter)
- {
- myicon.load(argVector[counter], icon::normal, myYakLibPtr);
- x_bgprintf(0,0, VisiblePageOffs, 0, 15, "Name: %s * Width: %d * Height: %d ", argVector[counter], myicon.width, myicon.height);
- myicon.show(10, 10, VisiblePageOffs);
- getch();
- x_rect_fill(10,10, 10+myicon.width, 10+myicon.height, VisiblePageOffs, 0);
- }
- x_text_mode();
- }